﻿<Canvas xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="250" Height="250" >
  <Canvas.Triggers>
    <EventTrigger RoutedEvent="Canvas.Loaded">
      <EventTrigger.Actions>
        <BeginStoryboard>
          <Storyboard x:Name="RotateTransformExample" RepeatBehavior="Forever">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" BeginTime="00:00:00">
              <SplineDoubleKeyFrame KeyTime="00:00:01" Value="180" />
            </DoubleAnimationUsingKeyFrames>
          </Storyboard>
        </BeginStoryboard>
      </EventTrigger.Actions>
    </EventTrigger>
  </Canvas.Triggers>
  <Line Stroke="Purple" StrokeThickness="8" X1="10" Y1="200" X2="300" Y2="20" />
  <Rectangle Height="168" Width="104" Canvas.Top="22" Canvas.Left="37" Stroke="#FFFF0000" StrokeThickness="5" RenderTransformOrigin="0.5,0.5" x:Name="rectangle">
    <Rectangle.RenderTransform>
      <TransformGroup>
        <ScaleTransform />
        <SkewTransform />
        <RotateTransform />
        <TranslateTransform />
      </TransformGroup>
    </Rectangle.RenderTransform>
    <Rectangle.Fill>
      <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="AntiqueWhite" />
        <GradientStop Color="Yellow" Offset="1" />
      </LinearGradientBrush>
    </Rectangle.Fill>
  </Rectangle>
  <Ellipse Height="97" Width="170" Fill="#880000FF" Stroke="#FF000000" StrokeThickness="4" Canvas.Top="77" Canvas.Left="73" RenderTransformOrigin="0.5,0.5" x:Name="ellipse">
    <Ellipse.RenderTransform>
      <TransformGroup>
        <ScaleTransform />
        <SkewTransform />
        <RotateTransform />
        <TranslateTransform />
      </TransformGroup>
    </Ellipse.RenderTransform>
  </Ellipse>
  <TextBlock Width="175" Text="TextBlock" TextWrapping="Wrap" VerticalAlignment="Stretch" FontFamily="Comic Sans MS" FontSize="24" FontStyle="Normal" Canvas.Top="205" Canvas.Left="51" />
  <Polygon Points="100,25 175,125 25,125" StrokeThickness="0" Fill="Orange" Canvas.Left="200" Canvas.Top="62" RenderTransformOrigin="0.5,0.5" x:Name="polygon">
    <Polygon.RenderTransform>
      <TransformGroup>
        <ScaleTransform />
        <SkewTransform />
        <RotateTransform />
        <TranslateTransform />
      </TransformGroup>
    </Polygon.RenderTransform>
  </Polygon>
  <Path Stroke="Green" StrokeThickness="6" StrokeDashArray="3,1" StrokeDashCap="Round" Canvas.Top="-15" Canvas.Left="51">
    <Path.Data>
      <PathGeometry>
        <PathFigure StartPoint="100,100">
          <QuadraticBezierSegment Point1="200,0" Point2="300,100" />
        </PathFigure>
      </PathGeometry>
    </Path.Data>
  </Path>
</Canvas>